import * as types from './mutation-types'
import { getCookie } from '../common/js/cookie'

const mutations = {
    [types.SET_USERINFO](state, flag) {
        state.bfUserInfo = flag || JSON.parse(getCookie('userInfo')) || JSON.parse(sessionStorage.getItem('userInfo')) || ''
    }
}
 
export default mutations